home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / demos / GL / demograph / demograph.h < prev    next >
C/C++ Source or Header  |  1994-08-01  |  2KB  |  104 lines

  1. /*
  2.  * Copyright 1991, 1992, 1993, 1994, Silicon Graphics, Inc.
  3.  * All Rights Reserved.
  4.  *
  5.  * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  6.  * the contents of this file may not be disclosed to third parties, copied or
  7.  * duplicated in any form, in whole or in part, without the prior written
  8.  * permission of Silicon Graphics, Inc.
  9.  *
  10.  * RESTRICTED RIGHTS LEGEND:
  11.  * Use, duplication or disclosure by the Government is subject to restrictions
  12.  * as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  13.  * and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  14.  * successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  15.  * rights reserved under the Copyright Laws of the United States.
  16.  */
  17. #include "gl.h"
  18. #include "fmclient.h"
  19.  
  20. /* current version of the states.bin data file */
  21. #define CURVERSION 120290
  22. /* magic number for demograph data file */
  23. #define MAGIC        19971989
  24.  
  25. #define MAXTITLE    24
  26. #define MAXSTRING   256
  27. #define MAXDATA        (XMAXSCREEN / 2)
  28. #define NUMSTATES   48
  29.  
  30. #define LINES        0
  31. #define TOPS        1
  32. #define SOLID        2
  33. #define LIGHTED        3
  34.  
  35. #define NOPORT        0
  36. #define SLIDERPORT  1
  37. #define MAPPORT        2
  38.  
  39. #define UP    0
  40. #define DOWN    1
  41.  
  42. #define SPIN    0
  43. #define TRANSXY 1
  44. #define TRANSZ    2
  45.  
  46. #define WID 302
  47. #define SLIDERHT 33
  48. #define STATUSHT 23
  49. #define HT (WID + SLIDERHT + STATUSHT - 2)
  50. #define S_FRAME_WID 7
  51. #define M_FRAME_WID 9
  52. #define S_WID_2_HT 1.5
  53. #define DATECHARS 8
  54. #define SLIDERWID (DATECHARS * 6 + S_FRAME_WID + 6)
  55.  
  56. /* arbitrary minimum */
  57. #define MINZSCALE    0.00000001
  58.  
  59. typedef struct {
  60.     char date[12];
  61.     float data[NUMSTATES];
  62. } DATA;   
  63.  
  64. typedef struct categoryrec {
  65.     char title[MAXTITLE];
  66.     DATA dataarray[MAXDATA];
  67.     float scale;
  68.     struct  categoryrec *next;
  69. } CATEGORY;
  70.  
  71. typedef struct {
  72.     int zbuffer;
  73.     int RGB;
  74. } MACHREC;
  75.  
  76. typedef struct {
  77.     long orgx, orgy;
  78.     int sliderminx, sliderminy, slidermaxx, slidermaxy;
  79.     int sliderwid;
  80.     int fps;    /* TRUE if frames per second is to be displayed */
  81.     int mapminx, mapminy, mapmaxx, mapmaxy;
  82.     int statminx, statminy, statmaxx, statmaxy;
  83.     float slideroldx, scale;
  84.     float lasttime;
  85. } WINREC;
  86.  
  87.  
  88. typedef struct {
  89.     float yscale;
  90.     float xscale;
  91.     float xoffset;
  92.     float yoffset;
  93.     int lwid;
  94. } FONTREC;
  95.  
  96.  
  97. typedef struct {
  98.     float ry;
  99.     float rx;
  100.     float tx;
  101.     float ty;
  102.     float tz;
  103. } MAPMOVE;
  104.